/**
 * Project: jiangyao
 * <p>
 * File Created at 2020/8/18
 * <p>
 * Copyright 2015 www.showstart.com Croporation Limited.
 * All rights reserved.
 * <p>
 * This software is the confidential and proprietary information of
 * Taihe Music Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with www.showstart.com.
 */
package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 数据分类DTO
 *
 * @author: yangyongchaun
 * @create: 2020年08月18日 10:33
 */
@ApiModel("数据分类DTO")
@Data
public class CategoryDTO implements BaseDTO {
	private static final long serialVersionUID = 8524733533117745726L;
	/**
	 * 主键ID
	 */
	@ApiModelProperty("分类ID")
	@NotNull(message = "分类ID不能为空", groups = {Edit.class, Delete.class})
	private Integer id;

	/**
	 * 类型 1-课程分类 2-课件分类 3-试题分类 4-职位分类
	 */
	@ApiModelProperty("类型 1-课程分类 2-课件分类 3-试题分类 4-职位分类")
	@NotNull(message = "类型不能为空", groups = {Add.class})
	private Integer type;

	/**
	 * 分类名称
	 */
	@ApiModelProperty("分类名称")
	@NotNull(message = "分类名称不能为空", groups = {Add.class, Edit.class})
	@NotEmpty(message = "分类名称不能为空", groups = {Add.class, Edit.class})
	private String name;

	/**
	 * 排序
	 */
	@ApiModelProperty("排序")
	@NotNull(message = "排序不能为空", groups = {Add.class, Edit.class})
	private Integer sortOrder;

}
